//
//  TwERPGdImageDisplayViewController.m
//  TwERP2017
//
//  Created by Li Xiangyang on 08/08/2017.
//  Copyright © 2017 Li Xiangyang. All rights reserved.
//

#import "TwERPGdImageDisplayViewController.h"
#import "TwERPAttachedFile.h"

@interface TwERPGdImageDisplayViewController ()

@end

@implementation TwERPGdImageDisplayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(NSArray *) loadImageUrls
{
    NSMutableArray * afUrls=[[NSMutableArray alloc] init];
    
    for (TwERPAttachedFile * aFile in _gongdan.attachedFiles) {
        if([aFile.type isEqualToString:@"image"])
            [afUrls addObject:aFile.url];
        
    }
    return afUrls;
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
